﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Top.ascx.cs" Inherits="Whir_System_Sys_Top" %>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="../Skin/Default/images/top_bg2.jpg">
    <tr>
        <td width="199">
            <img src="../Skin/Default/images/logo2.jpg" width="199" height="56" /></td>
        <td width="607" valign="bottom" class="block_box2">
            <ul class="blocklist">
                <li id="tab1" runat="server"><a name="topmenu" href="../Default.aspx" class="yk_menu_bj_02" target="_parent">
                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label></a></li>
                <li id="tab2" runat="server"><a name="topmenu" href="Default.aspx" class="yk_menu_bj_01 awhite" target="_parent">
                    <asp:Label ID="Label2" runat="server" Text=""></asp:Label></a></li>
                <li id="tab3" runat="server"><a name="topmenu" href="Tool.aspx" class="yk_menu_bj_02" target="_parent">
                    <asp:Label ID="Label3" runat="server" Text=""></asp:Label></a></li>
                <li id="tab4" runat="server"><a name="topmenu" href="Help.aspx" class="yk_menu_bj_02" target="_parent">
                    <asp:Label ID="Label4" runat="server" Text=""></asp:Label></a></li>
            </ul>
        </td>
        <td width="400" align="right" class="td_style" valign="bottom">
            <img src="../Skin/Default/images/icon1.jpg" width="15" height="10" hspace="5" align="absmiddle" />
            Hi！<span class="f_org"><strong><asp:Label ID="lbAdminName" CssClass="font_o" runat="server"></asp:Label></strong></span><asp:Label
                ID="lbWelCome" runat="server" Text=""></asp:Label>
            [
            <a href="../Module/Role/EditPass.aspx" target="mainframe">
                <asp:Label ID="lbleditpass" runat="server" Text="" CssClass="f_org"></asp:Label>
            </a>]&nbsp;[
            <asp:LinkButton ID="lbnLogout" runat="server" CssClass="font_o1" OnClick="lbnLogout_Click">
                <asp:Label ID="lblogout" runat="server" Text="" CssClass="f_org"></asp:Label></asp:LinkButton>] </td>
    </tr>
</table>

<script language="javascript">
    var url = window.parent.location.href;
    var topmenu = document.getElementsByName("topmenu");
    
    for(var i = 0; i < topmenu.length; i++){
        if(topmenu[i].href == url){
            topmenu[i].className = "yk_menu_bj_01 awhite";
            break;
        }else{
            topmenu[i].className = "yk_menu_bj_02";
        }
    }     
</script>

